package com.mars.foodserver.utils;

import java.util.Calendar;
import java.util.Date;

/**
 * @author wq
 * @version 1.0
 * @date 2021/06/17 16:17
 */
public class Test {


    public static Date calcAfterTime(Date expireTime, Integer day) {
        Calendar c = Calendar.getInstance();
        c.setTime(expireTime);
        c.add(Calendar.DATE, day);
        return c.getTime();
    }

    public static void main(String[] args) {
        Date date = calcAfterTime(new Date(), 10);
        System.out.println(date);
    }
}
